﻿/*
 * @autor: hectorea
 * @date: 11/08/2012
 * @programming interview 2
 * 
 */
using System;

namespace StringCombination
{
    internal static class StringExtension
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="input"></param>
        /// <param name="output"></param>
        /// <param name="current"></param>
        internal static void Combination(this string input, string output, int current)
        {
            for (int i = current; i < input.Length; i++)
            {
                output += input[i];
                Console.WriteLine(output);
                Combination(input, output, i + 1);
                output = output.Remove(output.Length - 1);
            }
        }
    }
}
